package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbLevel entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_LEVEL", schema = "dbo", catalog = "AGDB")
public class TbLevel implements java.io.Serializable {

	// Fields

	private String levelId;
	private String levelName;
	private String a;
	private String b;
	private String c;
	private Set<TbClassiccase> tbClassiccases = new HashSet<TbClassiccase>(0);

	// Constructors

	/** default constructor */
	public TbLevel() {
	}

	/** minimal constructor */
	public TbLevel(String levelId, String levelName) {
		this.levelId = levelId;
		this.levelName = levelName;
	}

	/** full constructor */
	public TbLevel(String levelId, String levelName, String a, String b,
			String c, Set<TbClassiccase> tbClassiccases) {
		this.levelId = levelId;
		this.levelName = levelName;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbClassiccases = tbClassiccases;
	}

	// Property accessors
	@Id
	@Column(name = "LEVEL_ID", unique = true, nullable = false, length = 4)
	public String getLevelId() {
		return this.levelId;
	}

	public void setLevelId(String levelId) {
		this.levelId = levelId;
	}

	@Column(name = "LEVEL_NAME", nullable = false, length = 100)
	public String getLevelName() {
		return this.levelName;
	}

	public void setLevelName(String levelName) {
		this.levelName = levelName;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbLevel")
	public Set<TbClassiccase> getTbClassiccases() {
		return this.tbClassiccases;
	}

	public void setTbClassiccases(Set<TbClassiccase> tbClassiccases) {
		this.tbClassiccases = tbClassiccases;
	}

}